package com.aiyaai.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: one
 * @BelongsPackage: com.aiyaai.controller
 * @Author: 不会说话的唉雅i
 * @CreateTime: 2025-09-02 09:22
 * @Description: TODO
 * @Version: 1.0
 */
@Controller
@RestController
public class TestController {

    @RequestMapping("hello")
    private String hello(){
        return "hello";
    }

    @GetMapping("HelloWord2")
    private String HelloWord2(){
        return "Hello World";
    }

    @PostMapping("HelloWord3")
    private String HelloWord3(){
        return "Hello World";
    }
}